<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




<title>NHibernate的调试技巧和Log4Net配置 - DDLLY命名空间 - 博客园</title>
<meta name="keywords" content="NHibernate,NHibernate的调试技巧和Log4Net配置">
<meta name="description" content="对新手而言NHibernate的调试事件很痛苦的事情，不知道NHibernate做了些什么，错误出现在什么地方。我给出一些常用的调试办法希望对你有所帮助。1.查看NHibernate写在控制台里的Sql语句2.配置Log4net来查看NHibernate留下的日志3.让NHibernate的日志不影响你使用Log4Net写日志4.在使用SqlServer时使用事件查看器监视Sql">




<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/renrenqq/rss">
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/renrenqq/rsd.xml"> 
  



<link rel="stylesheet" type="text/css" href="index.css" media="all">
</head>
<body>
    <form name="Form1" method="post" action="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>




        
<!--done-->
<div id="header">
	
<!--done-->
<div class="header">
	<div class="headerText">
		<a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/renrenqq/">DDLLY命名空间</a><br>
		<table border="0" width="100%">
  <tbody><tr>
    <td>&nbsp;&nbsp;DDLLY命名空间有两个类DDL和LLY</td>
    <td rowspan="3">
      <ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 60px; position: relative; visibility: visible; width: 234px;"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 60px; position: relative; visibility: visible; width: 234px;"><iframe allowtransparency="true" hspace="0" id="google_ads_frame1" marginheight="0" marginwidth="0" name="google_ads_frame" src="index_1.html" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" scrolling="no" frameborder="0" height="60" width="234"></iframe></ins></ins></td>
  </tr>
</tbody></table>
	</div>
</div>

</div>

<div id="mytopmenu">
	
		<div id="mylinks">
<!--done-->
<a id="MyLinks1_HomeLink" class="menu" href="http://www.cnblogs.com/">博客园</a>&nbsp;&nbsp;
<a id="MyLinks1_MyHomeLink" class="menu" href="http://www.cnblogs.com/renrenqq/">首页</a>&nbsp;&nbsp;
<a href="http://space.cnblogs.com/" class="menu">社区</a>&nbsp;&nbsp;
&nbsp;&nbsp;
<a id="MyLinks1_ContactLink" class="menu" href="http://space.cnblogs.com/msg/send/DDL">联系</a>&nbsp;&nbsp;
<a id="MyLinks1_Syndication" class="menu" href="http://www.cnblogs.com/renrenqq/rss">订阅</a><a id="MyLinks1_XMLLink" href="http://www.cnblogs.com/renrenqq/rss"><img src="xml.gif" alt="订阅" style="border-width: 0px;"></a>&nbsp;&nbsp;
<a id="MyLinks1_Admin" class="menu" href="http://www.cnblogs.com/renrenqq/admin/EditPosts.aspx">管理</a>
</div>
		<div id="mystats">
<!--done-->
随笔-82&nbsp;
评论-920&nbsp;
文章-0&nbsp;
trackbacks-56
</div>
	
</div>
<div id="centercontent">
	
					
<div class="post">
	<h1 class="postTitle"><a id="ctl04_TitleUrl" class="postTitle2" href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html">NHibernate的调试技巧和Log4Net配置</a></h1>
	<p>对新手而言NHibernate的调试事件很痛苦的事情，不知道NHibernate做了些什么，错误出现在什么地方。</p>
<p>我给出一些常用的调试办法希望对你有所帮助。</p>
<p>&nbsp;</p>
<p><strong>1.查看NHibernate写在控制台里的Sql语句</strong></p>
<p>在配置文件中有这么个选项，如果把它设置为true，NHibernate会把执行的Sql显示在控制台上。</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">property&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="show_sql"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">true</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span></div>
<p>对于控制台应用程序我们可以设置断点后很轻松的看到NHibernate执行了什么Sql。</p>
<p>下图是从数据库中读取一条数据。</p>
<p><img src="o_showsqlinconsole.jpg"><br>如果你写了单元测试，从NUnit同样可以很容易地看到。</p>
<p><img src="o_showsqlinnunit.jpg"></p>
<p>&nbsp;<br><strong><br>2.配置Log4net来查看NHibernate留下的日志</strong></p>
<p>如果你的程序是Asp.Net程序。那就看不到控制台信息了。那么就使用第二招配置Log4net。</p>
<p>按习惯，我还是使用单独的配置文件。当然你也可以配置在应用程序配置文件中（App.config或Web.Config）。</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;?</span><span style="color: rgb(255, 0, 255);">xml&nbsp;version="1.0"&nbsp;encoding="utf-8"&nbsp;</span><span style="color: rgb(0, 0, 255);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">log4net</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">appender&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="rollingFile"</span><span style="color: rgb(255, 0, 0);">&nbsp;type</span><span style="color: rgb(0, 0, 255);">="log4net.Appender.RollingFileAppender,log4net"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="File"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="log.txt"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="AppendToFile"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="RollingStyle"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Date"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="DatePattern"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="yyyy.MM.dd"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="StaticLogFileName"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">layout&nbsp;</span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="log4net.Layout.PatternLayout,log4net"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="ConversionPattern"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="%d&nbsp;[%t]&nbsp;%-5p&nbsp;%c&nbsp;[%x]&nbsp;&amp;lt;%X{auth}&amp;gt;&nbsp;-&nbsp;%m%n"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">layout</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">appender</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">root</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">&lt;!--</span><span style="color: rgb(0, 128, 0);">如果只需要看看Sql设置INFO就够了，如果你要调试可以设置为DEBUG或ALL</span><span style="color: rgb(0, 128, 0);">--&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">priority&nbsp;</span><span style="color: rgb(255, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">="INFO"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">appender-ref&nbsp;</span><span style="color: rgb(255, 0, 0);">ref</span><span style="color: rgb(0, 0, 255);">="rollingFile"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">root</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">log4net</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span></div>
<p>读取log4net配置的代码</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">XmlConfigurator.Configure(</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;FileInfo(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">log4net.cfg.xml</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">));</span></div>
<p>运行了程序后你可以在应用程序目录找到log.txt的配置文件。里面记录了包括Sql的NHibernate的运行信息。</p>
<p>这是一个日志的片断</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">16</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">921</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Environment&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;NHibernate&nbsp;</span><span style="color: rgb(0, 0, 0);">1.0.2</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">16</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">968</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Environment&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;nhibernate&nbsp;section&nbsp;not&nbsp;found&nbsp;in&nbsp;application&nbsp;configuration&nbsp;file<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">16</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">968</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Environment&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Using&nbsp;reflection&nbsp;optimizer<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">000</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Configuration&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Searching&nbsp;for&nbsp;mapped&nbsp;documents&nbsp;in&nbsp;assembly:&nbsp;DDLLY.MyDoc.NHibernateTest.Log4NetTest<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">000</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Configuration&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Found&nbsp;mapping&nbsp;documents&nbsp;in&nbsp;assembly:&nbsp;DDLLY.MyDoc.NHibernateTest.Log4NetTest.User.hbm.xml<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">062</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Dialect.Dialect&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Using&nbsp;dialect:&nbsp;NHibernate.Dialect.MsSql2000Dialect<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">109</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Binder&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Mapping&nbsp;class:&nbsp;DDLLY.MyDoc.NHibernateTest.Log4NetTest.User&nbsp;-&gt;&nbsp;users<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">156</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Configuration&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Configured&nbsp;SessionFactory:&nbsp;DDLLY.MyDoc.NHibernateTest.Log4NetTest<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">171</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Configuration&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;processing&nbsp;one-to-many&nbsp;association&nbsp;mappings<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">171</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Configuration&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;processing&nbsp;one-to-one&nbsp;association&nbsp;property&nbsp;references<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">171</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Configuration&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;processing&nbsp;foreign&nbsp;key&nbsp;constraints<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">187</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Dialect.Dialect&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Using&nbsp;dialect:&nbsp;NHibernate.Dialect.MsSql2000Dialect<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">187</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.SettingsFactory&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;use&nbsp;outer&nbsp;join&nbsp;fetching:&nbsp;True<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">187</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Connection.ConnectionProviderFactory&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Intitializing&nbsp;connection&nbsp;provider:&nbsp;NHibernate.Connection.DriverConnectionProvider<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">187</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Connection.ConnectionProvider&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Configuring&nbsp;ConnectionProvider<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">187</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.SettingsFactory&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Optimize&nbsp;cache&nbsp;for&nbsp;minimal&nbsp;puts:&nbsp;False<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">203</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.SettingsFactory&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;echoing&nbsp;all&nbsp;SQL&nbsp;to&nbsp;stdout<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">203</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.SettingsFactory&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Query&nbsp;language&nbsp;substitutions:&nbsp;{false</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">&nbsp;no</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'N'</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">&nbsp;yes</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'Y'</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">&nbsp;true</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">}<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">203</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.SettingsFactory&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;cache&nbsp;provider:&nbsp;NHibernate.Cache.HashtableCacheProvider<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">203</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Cfg.Configuration&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;instantiating&nbsp;and&nbsp;configuring&nbsp;caches<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">218</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Impl.SessionFactoryImpl&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;building&nbsp;session&nbsp;factory<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">812</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Impl.SessionFactoryObjectFactory&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;Factory&nbsp;name:DDLLY.MyDoc.NHibernateTest.Log4NetTest<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">08</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">859</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">2036</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;INFO&nbsp;NHibernate.Loader.Loader&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">(null)</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;&lt;(null)&gt;&nbsp;-&nbsp;SELECT&nbsp;user0_.Id&nbsp;as&nbsp;Id0_</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">&nbsp;user0_.Email&nbsp;as&nbsp;Email0_</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">&nbsp;user0_.UserName&nbsp;as&nbsp;UserName0_</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">&nbsp;user0_.Password&nbsp;as&nbsp;Password0_&nbsp;FROM&nbsp;users&nbsp;user0_&nbsp;WHERE&nbsp;user0_.Id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">@p0<br><img src="none.gif" align="top"></span></div>
<p><br>从这个文件我们可以看到NHibernate都做了些什么(包括执行了什么Sql，看上面的最后一行)。</p>
<p>当你想更详细的信息可以把priority设置为ALL，这样可以看到所有信息。</p>
<p>提示：NHibernate会把一般信息记录为INFO，调试信息记录为Debug，错误信息记录为Error。</p>
<p>Log4Net中支持多个appender你可以也把日志记录到数据库等其他地方，请参看Log4Net的文档，这里不做讲解。</p>
<p>&nbsp;</p>
<p><strong>3.让NHibernate的日志不影响你使用Log4Net写日志</strong></p>
<p>NHibernate总是会调用配置&lt;root&gt;里面的“appender-ref”来写配置。</p>
<p>所以如果你系统本省也使用了Log4Net记录日志，而不想让NHibernate的日志影响，则可以定义logger。</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;?</span><span style="color: rgb(255, 0, 255);">xml&nbsp;version="1.0"&nbsp;encoding="utf-8"&nbsp;</span><span style="color: rgb(0, 0, 255);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">log4net</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">root</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">&lt;!--</span><span style="color: rgb(0, 128, 0);">如果只需要看看Sql设置INFO就够了，如果你要调试可以设置为DEBUG或ALL</span><span style="color: rgb(0, 128, 0);">--&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">priority&nbsp;</span><span style="color: rgb(255, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">="INFO"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">appender-ref&nbsp;</span><span style="color: rgb(255, 0, 0);">ref</span><span style="color: rgb(0, 0, 255);">="rollingFile"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">root</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">logger&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="ApplicationInfoLog"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">level&nbsp;</span><span style="color: rgb(255, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">="INFO"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">appender-ref&nbsp;</span><span style="color: rgb(255, 0, 0);">ref</span><span style="color: rgb(0, 0, 255);">="rollingFile1"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">logger</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">appender&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="rollingFile"</span><span style="color: rgb(255, 0, 0);">&nbsp;type</span><span style="color: rgb(0, 0, 255);">="log4net.Appender.RollingFileAppender,log4net"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="File"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="log.txt"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="AppendToFile"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="RollingStyle"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Date"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="DatePattern"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="yyyy.MM.dd"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="StaticLogFileName"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">layout&nbsp;</span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="log4net.Layout.PatternLayout,log4net"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="ConversionPattern"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="%d&nbsp;[%t]&nbsp;%-5p&nbsp;%c&nbsp;[%x]&nbsp;&amp;lt;%X{auth}&amp;gt;&nbsp;-&nbsp;%m%n"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">layout</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">appender</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">appender&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="rollingFile1"</span><span style="color: rgb(255, 0, 0);">&nbsp;type</span><span style="color: rgb(0, 0, 255);">="log4net.Appender.RollingFileAppender,log4net"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="File"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="log1.txt"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="AppendToFile"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="RollingStyle"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Date"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="DatePattern"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="yyyy.MM.dd"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="StaticLogFileName"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">layout&nbsp;</span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="log4net.Layout.PatternLayout,log4net"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">param&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="ConversionPattern"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="%d&nbsp;[%t]&nbsp;%-5p&nbsp;%c&nbsp;[%x]&nbsp;&amp;lt;%X{auth}&amp;gt;&nbsp;-&nbsp;%m%n"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">layout</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">appender</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">log4net</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span></div>
<p>日志记录代码</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">ILog&nbsp;applicationInfoLog</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">applicationInfoLog&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;LogManager.GetLogger(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ApplicationInfoLog</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top">applicationInfoLog.Info(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">记录日志</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);</span></div>
<p>此例中NHibernater日志会存在log.txt，系统日志记录在log1.txt。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>4.在使用SqlServer时使用事件查看器监视Sql</strong></p>
<p>对于SqlServer数据库，如果你没有条件可以完成上面的功能，那么你可以使用事件查看器来监视执行的Sql,使用比较简单，不多说了。</p>
<p>&nbsp;</p>

<div id="digg_block">
<div id="div_digg">										
	<div class="diggit" onclick="DiggIt(471788,1769,1)"> 
		<span class="diggnum" id="digg_count_471788">1</span>
	</div>
	<div class="buryit" onclick="DiggIt(471788,1769,2)"> 
		<span class="burynum" id="bury_count_471788">0</span>
	</div>
	<div class="clear"></div>
	<span style="display: none;" id="span_isdigged_471788">0</span>	
	<div class="diggword" id="digg_word_471788">(请您对文章做出评价)</div>	
</div>
</div>
<div class="clear"></div>
<div id="post_next_prev">
<a href="http://www.cnblogs.com/renrenqq/archive/2006/08/08/470954.html">« </a> 上一篇：<a href="http://www.cnblogs.com/renrenqq/archive/2006/08/08/470954.html" title="发布于2006-08-08 12:55">建立OR Mapping团队的倡议</a><br>
<a href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471820.html">» </a> 下一篇：<a href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471820.html" title="发布于2006-08-09 09:44">NHibernate的Q&amp;A（持续更新）</a><br>
</div>








	<div class="postDesc">posted on 2006-08-09 09:37 <a href="http://www.cnblogs.com/renrenqq/">DDL</a> 阅读(6419) <a href="#commentform">评论(5)</a> &nbsp;<a href="http://www.cnblogs.com/renrenqq/admin/EditPosts.aspx?postid=471788">编辑</a> <a href="http://www.cnblogs.com/renrenqq/AddToFavorite.aspx?id=471788">收藏</a> <a href="#" onclick="PutInWz();return false;">网摘</a>  所属分类: <a href="http://www.cnblogs.com/renrenqq/category/39891.html">NHibernate</a></div>
</div>
<img src="471788.html" height="1" width="1">

<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html"
dc:identifier="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/renrenqq/services/trackbacks/471788.aspx" />
</rdf:RDF>
-->

<a name="pagedcomment"></a>
<!--done-->
<br>
<b>评论:</b>
<div class="feedbackNoItems"><span id="span_comment_maxid" style="display: none;">574370</span></div>
	

		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
			<a href="#471843">#1楼</a><a name="471843" id="comment_anchor_471843"></a> 218.82.175.* 
				2006-08-09 09:52 | <a id="Comments1_CommentList_ctl00_NameLink" target="_blank">vb1980[未注册用户]</a><br>
				<div align="left"><span id="comment_body_471843" class="blog_comment_body">好，说明得很全面。
<br>用的只是Nunit和看log4net日志</span><br>&nbsp;&nbsp;<a onclick='ReplyComment("vb1980",471843,"")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(471843,"")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">引用</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
			</div>
			
			
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
			<a href="#471874">#2楼</a><a name="471874" id="comment_anchor_471874"></a>
				2006-08-09 10:16 | <a id="Comments1_CommentList_ctl01_NameLink" href="http://www.cnblogs.com/wujun/" target="_top">junmy</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/junmy" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><br>
				<div align="left"><span id="comment_body_471874" class="blog_comment_body">good.</span><br>&nbsp;&nbsp;<a onclick='ReplyComment("junmy",471874,"pyJn/86zPjQuYKNxF6WmcT5s+VlDrRrJ1u99sOKkPwCJ9fS2tUfG+w==")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(471874,"pyJn/86zPjQuYKNxF6WmcT5s+VlDrRrJ1u99sOKkPwCJ9fS2tUfG+w==")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=junmy" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
			</div>
			
			
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
			<a href="#471881">#3楼</a><a name="471881" id="comment_anchor_471881"></a>[<span class="louzhu">楼主</span>]
				2006-08-09 10:21 | <a id="Comments1_CommentList_ctl02_NameLink" href="http://www.cnblogs.com/renrenqq/" target="_top">DDL</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/DDL" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><br>
				<div align="left"><span id="comment_body_471881" class="blog_comment_body">@vb1980
<br>是啊，主要就靠这个
<br>记得刚开始的时候我经常拿NHibernate类库放在程序里跟踪，经常弄得一头雾水。
<br>
<br>看懂NHibernate日志也挺不容易的，得对NHibernate的原理有些了解。</span><br>&nbsp;&nbsp;<a onclick='ReplyComment("DDL",471881,"y3JtGpFeNkoevKfGJRbXTmyh4ycWGYr5SjJWPtP910W7nk5lfcLAHA==")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(471881,"y3JtGpFeNkoevKfGJRbXTmyh4ycWGYr5SjJWPtP910W7nk5lfcLAHA==")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=DDL" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
			</div>
			
			
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
			<a href="#489376">#4楼</a><a name="489376" id="comment_anchor_489376"></a>
				2006-08-29 14:23 | <a id="Comments1_CommentList_ctl03_NameLink" href="http://www.cnblogs.com/tseng/" target="_top">Tseng</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Tseng" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><br>
				<div align="left"><span id="comment_body_489376" class="blog_comment_body">可以用SQL Profiler查看NHibernate留下的日志，
<br>exec sp_executesql N'SELECT user0_.Id as Id0_, user0_.Email as Email0_, user0_.UserName as UserName0_, user0_.Password as Password0_ FROM users user0_ WHERE user0_.Id=@p0', N'@p0 int', @p0 = 1</span><br>&nbsp;&nbsp;<a onclick='ReplyComment("Tseng",489376,"oRKUQ0X2ILslJX7i7gXPM3m/aDF6dABCg5W0HzQQ8NyYVHNjXqV7SA==")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(489376,"oRKUQ0X2ILslJX7i7gXPM3m/aDF6dABCg5W0HzQQ8NyYVHNjXqV7SA==")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Tseng" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
			</div>
			
			
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
			<a href="#574370">#5楼</a><a name="574370" id="comment_anchor_574370"></a> 218.12.34.* <a name="Post"></a>
				2006-11-27 21:21 | <a id="Comments1_CommentList_ctl04_NameLink" target="_blank">youling[未注册用户]</a><br>
				<div align="left"><span id="comment_body_574370" class="blog_comment_body">试一试</span><br>&nbsp;&nbsp;<a onclick='ReplyComment("youling",574370,"")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(574370,"")' href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html#commentform">引用</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
			</div>
			
			
		</div>
	





<div id="comment_form" class="commentform">



<div id="divCommentShow"></div>
<div id="comment_nav" style="text-align: right;"><span id="span_refresh_tips"></span><a href="###" onclick="return RefreshCommentList(471788);" name="commentform" id="lnk_RefreshComments">刷新评论列表</a>&nbsp; <a href="###" onclick="return RefreshPage();">刷新页面</a>&nbsp; <a href="#top">返回页首</a></div>
<div id="commentform_title">发表评论 <span class="ad_commentbox_up"><a href="http://www.cnblogs.com/" target="_top">博客园首页</a>&nbsp; <a href="http://news.cnblogs.com/" target="_top">IT新闻</a>&nbsp; <a href="http://home.cnblogs.com/ing/" target="_top">闪存</a>&nbsp; <a href="http://job.cnblogs.com/" target="_top">招聘</a>&nbsp; <a href="http://a4.yeshj.com/rd/34143/" target="_top">学英语</a></span></div>
<span id="tip_comment" style="color: Red;"></span>
<p>
昵称：<input name="ctl05$tbCommentAuthor" id="ctl05_tbCommentAuthor" class="author" value="解然" disabled="disabled" type="text">
</p>
<p>
主页：<input name="ctl05$tbCommentAuthorUrl" id="ctl05_tbCommentAuthorUrl" class="url" value="http://www.cnblogs.com/xieran/" disabled="disabled" type="text">
</p>
<p>
</p><div class="commentbox_title">
<div class="commentbox_title_left">评论内容：</div>
<div class="commentbox_title_right">
<img id="ubb_quote" class="comment_icon" src="quote.gif" alt="引用" title="添加引用" onclick="insertUBB('tbCommentBody','quote')">
<img id="ubb_bold" class="comment_icon" src="b.png" alt="粗体" title="添加粗体" onclick="insertUBB('tbCommentBody','b')">
<img id="ubb_url" class="comment_icon" src="lk.png" alt="链接" title="添加链接" onclick="insertUbbUrl('tbCommentBody')">
<img id="ubb_indent" class="comment_icon" src="indent.png" alt="缩进" title="添加首行缩进" onclick="insertIndent('tbCommentBody')">
<img id="ubb_img" class="comment_icon" src="img.gif" alt="图片" title="添加图片" onclick="insertUbbImg('tbCommentBody')">
<img id="ubb_code" class="comment_icon" style="" src="insertcode.gif" alt="代码" title="添加代码" onclick="insertUbbCode()">
</div>
</div>
<div class="clear"></div>
<textarea id="tbCommentBody" class="comment_textarea" onkeydown="return clt_enter(event)"></textarea>
<p></p>
<p>
<input id="btn_comment_submit" class="comment_btn" value="提交" onclick="PostComment();return false;" type="button">
&nbsp;&nbsp;<span id="span_comment_canceledit" style="display: none;"><a href="###" onclick="return CancelCommentEdit()">不改了</a>&nbsp;&nbsp;</span><a href="http://passport.cnblogs.com/logout.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2frenrenqq%2farchive%2f2006%2f08%2f09%2f471788.html%3flogout%3d1%23commentform" onclick="return confirm('确认注销吗？')">注销</a>&nbsp;&nbsp;<a id="ctl05_lnkSubscribe" title="邮件订阅回复通知" onclick="return SubscribeComment();" href="http://www.cnblogs.com/UI/Controls/#%23%23">订阅回复</a>
</p>
<p>
[使用Ctrl+Enter键快速提交]
</p>
<div style="display: none;">
<span id="comment_edit_id"></span><span id="span_parentcomment_id">0</span>
<span id="span_parent_id">471788</span>
<span id="span_comment_replyto"></span>
<span id="span_comment_title">NHibernate的调试技巧和Log4Net配置</span>
<span id="span_comment_posted"></span>
</div>

<div class="itnews c_ad_block" id="itnews">
<a href="http://news.cnblogs.com/" target="_top">IT新闻</a>:<br>

          ·  <a href="http://news.cnblogs.com/n/55140/" target="_top">《星际争霸2》"刀锋女王"重金属主题音乐视频</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55139/" target="_top">中国站长最郁闷的几件事情</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55138/" target="_top">苹果Vs谷歌：手机领域谁怕谁？</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55137/" target="_top">摩托罗拉：豪赌Android的希望与隐忧</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55136/" target="_top">分众新坐标：楼宇是过去 未来在手机和互联网</a><br>
	
</div>


<div id="ad_under_comment" class="c_ad_block">
<a href="http://a4.yeshj.com/rd/34138/" target="_top">每天10分钟，轻松学英语</a><br><br>
<div id="google_ads_div_cnblogs_blogpost_bottom1">
<iframe src="index_2.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom1" id="google_ads_iframe_cnblogs_blogpost_bottom1" scrolling="no" frameborder="0" height="60" width="468"></iframe></div>

<br>
<div id="google_ads_div_cnblogs_blogpost_bottom">
<iframe src="index_3.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom" id="google_ads_iframe_cnblogs_blogpost_bottom" scrolling="no" frameborder="0" height="250" width="300"></iframe></div>

</div>
<div id="site_nav_under" class="c_ad_block">
网站导航：<br>
<a href="http://www.cnblogs.com/" target="_top">博客园首页</a> &nbsp;<a href="http://news.cnblogs.com/" target="_top">IT新闻</a> &nbsp;<a href="http://home.cnblogs.com/" target="_top">个人主页</a> &nbsp;<a href="http://home.cnblogs.com/ing/" target="_top">闪存</a> &nbsp;<a href="http://job.cnblogs.com/" target="_top">程序员招聘</a> &nbsp;<a href="http://space.cnblogs.com/" target="_top">社区</a> &nbsp;<a href="http://space.cnblogs.com/q/" target="_top">博问</a> &nbsp;<a href="http://wz.cnblogs.com/" target="_top">网摘</a>
</div>
<div id="ad_under_comment2" class="c_ad_block">
<a href="http://www.china-pub.com/STATIC07/0912/zh_ndcx_091212.asp" target="_top"><img src="chinapub_20091222.jpg" alt="" style="border: 0px none ;"></a><br>
<a href="http://www.china-pub.com/itbook/" target="_top">China-pub 计算机图书网上专卖店！6.5万品种2-8折！</a><br>
<a href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" target="_top">China-Pub 计算机绝版图书按需印刷服务</a><br>
</div>


<div id="div_commentbox_nav" class="c_ad_block">
链接：<a href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html?switchskin=1#skinlist">切换模板</a><br>
</div>
<div id="relative_search"><br><b>相关搜索:</b><br> <a href="http://zzk.cnblogs.com/s?w=NHibernate" target="_top">NHibernate</a> </div><div id="relative_search"><br><b>在知识库中查看：</b><br> <a href="http://kb.cnblogs.com/a/471788/">NHibernate的调试技巧和Log4Net配置</a></div>

</div>




				
</div>
<div id="leftcontent" style="display: inline;">
	
		<div id="leftcontentcontainer">
			
<!--done-->
<div class="newsItem">
	<table border="0" width="200">
    <tbody>
        <tr>
            <td align="left">只有偏执狂才能生存。</td>
        </tr>
        <tr>
            <td align="left">教堂尖项上的风标，即使由钢铁制成，如果不懂得顺应风势的艺术，一样会被暴风立即摧毁。</td>
        </tr>
        <tr>
            <td align="center"><strong>原创</strong>技术文章，<strong>转载</strong>请注明来源。</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td align="center"></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td align="center"><a href="http://member.bcentral.com/cgi-bin/fc/fastcounter-login?3364783" target="_top"><img src="fastcounter" alt="" border="0"></a></td>
        </tr>
    </tbody>
</table>
<div id="profile_block"><a href="http://home.cnblogs.com/renrenqq/" target="_top">我的主页</a>&nbsp; <a href="http://home.cnblogs.com/renrenqq/detail/" target="_top">个人资料</a><br><a href="http://home.cnblogs.com/renrenqq/ing/" target="_top">我的闪存</a>&nbsp; <a href="http://space.cnblogs.com/msg/send/DDL" target="_top">发短消息</a></div>
</div>

			<table id="Calendar1_entryCal" class="Cal" title="Calendar" style="border-style: solid; border-width: 1px; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr><td colspan="7" style="background-color: Silver;"><table class="CalTitle" style="width: 100%; border-collapse: collapse;" border="0" cellspacing="0">
		<tbody><tr><td class="CalNextPrev" style="width: 15%;"><a href="javascript:__doPostBack('Calendar1$entryCal','V2373')" style="color: Black;" title="Go to the previous month">&lt;</a></td><td style="width: 70%;" align="center">2006年8月</td><td class="CalNextPrev" style="width: 15%;" align="right"><a href="javascript:__doPostBack('Calendar1$entryCal','V2435')" style="color: Black;" title="Go to the next month">&gt;</a></td></tr>
	</tbody></table></td></tr><tr><th class="CalDayHeader" abbr="日" scope="col" align="center">日</th><th class="CalDayHeader" abbr="一" scope="col" align="center">一</th><th class="CalDayHeader" abbr="二" scope="col" align="center">二</th><th class="CalDayHeader" abbr="三" scope="col" align="center">三</th><th class="CalDayHeader" abbr="四" scope="col" align="center">四</th><th class="CalDayHeader" abbr="五" scope="col" align="center">五</th><th class="CalDayHeader" abbr="六" scope="col" align="center">六</th></tr><tr><td class="CalOtherMonthDay" style="width: 14%;" align="center">30</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">31</td><td style="width: 14%;" align="center">1</td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/2.html"><u>2</u></a></td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/3.html"><u>3</u></a></td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/4.html"><u>4</u></a></td><td class="CalWeekendDay" style="width: 14%;" align="center">5</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">6</td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/7.html"><u>7</u></a></td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/8.html"><u>8</u></a></td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/9.html"><u>9</u></a></td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/10.html"><u>10</u></a></td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/11.html"><u>11</u></a></td><td class="CalWeekendDay" style="width: 14%;" align="center">12</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">13</td><td style="width: 14%;" align="center">14</td><td style="width: 14%;" align="center">15</td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/16.html"><u>16</u></a></td><td style="width: 14%;" align="center">17</td><td style="width: 14%;" align="center">18</td><td class="CalWeekendDay" style="width: 14%;" align="center">19</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">20</td><td style="width: 14%;" align="center">21</td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/22.html"><u>22</u></a></td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/renrenqq/archive/2006/8/23.html"><u>23</u></a></td><td style="width: 14%;" align="center">24</td><td style="width: 14%;" align="center">25</td><td class="CalWeekendDay" style="width: 14%;" align="center">26</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">27</td><td style="width: 14%;" align="center">28</td><td style="width: 14%;" align="center">29</td><td style="width: 14%;" align="center">30</td><td style="width: 14%;" align="center">31</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">1</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">2</td></tr><tr><td class="CalOtherMonthDay" style="width: 14%;" align="center">3</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">4</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">5</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">6</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">7</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">8</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">9</td></tr>
</tbody></table>
<br>
			

<div class="mySearch">
<h3 class="catListTitle">搜索</h3>
<div class="div_my_zzk"><input value="" id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk" type="text">&nbsp;<input onclick="zzk_go()" value="找找看" id="btnZzk" class="btn_my_zzk" type="button"></div>
</div>
<div class="ad_side">
<ul style="margin-left: 0px;"><li>
<div>

<ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 150px; position: relative; visibility: visible; width: 180px;"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 150px; position: relative; visibility: visible; width: 180px;"><iframe allowtransparency="true" hspace="0" id="google_ads_frame4" marginheight="0" marginwidth="0" name="google_ads_frame" src="index_4.html" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" scrolling="no" frameborder="0" height="150" width="180"></iframe></ins></ins>
</div></li></ul>
</div>
<h3>常用链接</h3>
<ul>

		<li><a id="SingleColumn1_ctl03_rptMainLinks_ctl00_lnkLinkItem" href="http://www.cnblogs.com/renrenqq/MyPosts.html">我的随笔</a></li>
	
		<li><a id="SingleColumn1_ctl03_rptMainLinks_ctl01_lnkLinkItem" href="http://home.cnblogs.com/renrenqq/">我的空间</a></li>
	
		<li><a id="SingleColumn1_ctl03_rptMainLinks_ctl02_lnkLinkItem" href="http://space.cnblogs.com/msg/recent">我的短信</a></li>
	
		<li><a id="SingleColumn1_ctl03_rptMainLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/renrenqq/MyComments.html">我的评论</a></li>
	
<li><a id="itemListLink" onclick="this.blur();WarpClass('itemListLink', 'itemListLin_con');return false;" href="#">更多链接</a></li>
</ul>
<div id="itemListLin_con" style="display: none;">
<ul>
		<li><a id="SingleColumn1_ctl03_repeaterLinks_ctl01_lnkLinkItem" title="我发表过评论的随笔" href="http://www.cnblogs.com/renrenqq/OtherPosts.html">我的参与</a></li>
	
		<li><a id="SingleColumn1_ctl03_repeaterLinks_ctl02_lnkLinkItem" href="http://www.cnblogs.com/renrenqq/MyNews.html">我的新闻</a></li>
	
		<li><a id="SingleColumn1_ctl03_repeaterLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/renrenqq/RecentComments.html">最新评论</a></li>
	
		<li><a id="SingleColumn1_ctl03_repeaterLinks_ctl04_lnkLinkItem" href="http://www.cnblogs.com/renrenqq/tag/">我的标签</a></li>
	</ul>
</div>
<h3 class="catListTitle">我参与的团队</h3>
<div class="RecentComment">
	
			<ul style="">
		
			<li>
				<a id="SingleColumn1__3d2284b_TeamList_ctl01_lnkTeam" href="http://team.cnblogs.com/DesignPattern/">Design &amp; Pattern团队(0/0)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3d2284b_TeamList_ctl02_lnkTeam" href="http://team.cnblogs.com/SHDotNetClub/">上海.NET俱乐部(0/0)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3d2284b_TeamList_ctl03_lnkTeam" href="http://team.cnblogs.com/GZDotNetClub/">广州.NET俱乐部(0/0)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3d2284b_TeamList_ctl04_lnkTeam" href="http://team.cnblogs.com/nanchang/">南昌.net俱乐部(0/0)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3d2284b_TeamList_ctl05_lnkTeam" href="http://team.cnblogs.com/ORMapping/">O/R Mapping团队(0/0)</a>
			</li>
		
			</ul>
		
</div>

		<h3 class="catListTitle">随笔分类<span style="font-size: 11px; font-weight: normal;">(83)</span></h3>
		
				<ul class="catList">
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/2446.html">.NET(11)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_RssLink" title="Subscribe to .NET(11)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/2446.html/rss"><img title="Subscribe to .NET(11)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/65499.html">Asp.net(5)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_RssLink" title="Subscribe to Asp.net(5)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/65499.html/rss"><img title="Subscribe to Asp.net(5)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/39891.html">NHibernate(29)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_RssLink" title="Subscribe to NHibernate(29)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/39891.html/rss"><img title="Subscribe to NHibernate(29)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/64888.html">Office编程(1)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_RssLink" title="Subscribe to Office编程(1)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/64888.html/rss"><img title="Subscribe to Office编程(1)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/59196.html">XML</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_RssLink" title="Subscribe to XML" class="listitem" href="http://www.cnblogs.com/renrenqq/category/59196.html/rss"><img title="Subscribe to XML" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/2452.html">编程其他(1)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_RssLink" title="Subscribe to 编程其他(1)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/2452.html/rss"><img title="Subscribe to 编程其他(1)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/9321.html">代码生成(4)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_RssLink" title="Subscribe to 代码生成(4)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/9321.html/rss"><img title="Subscribe to 代码生成(4)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/5444.html">读书笔记(6)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_RssLink" title="Subscribe to 读书笔记(6)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/5444.html/rss"><img title="Subscribe to 读书笔记(6)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/64525.html">规范文档(1)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_RssLink" title="Subscribe to 规范文档(1)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/64525.html/rss"><img title="Subscribe to 规范文档(1)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/66465.html">设计(架构)模式(2)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_RssLink" title="Subscribe to 设计(架构)模式(2)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/66465.html/rss"><img title="Subscribe to 设计(架构)模式(2)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/64892.html">思考和感悟(3)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_RssLink" title="Subscribe to 思考和感悟(3)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/64892.html/rss"><img title="Subscribe to 思考和感悟(3)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/2453.html">随便写写(16)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_RssLink" title="Subscribe to 随便写写(16)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/2453.html/rss"><img title="Subscribe to 随便写写(16)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/67264.html">团队管理(2)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_RssLink" title="Subscribe to 团队管理(2)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/67264.html/rss"><img title="Subscribe to 团队管理(2)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_Link" class="listitem" href="http://www.cnblogs.com/renrenqq/category/59195.html">正则表达式(2)</a><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_RssLink" title="Subscribe to 正则表达式(2)" class="listitem" href="http://www.cnblogs.com/renrenqq/category/59195.html/rss"><img title="Subscribe to 正则表达式(2)" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				</ul>
			
	
		<h3 class="catListTitle">project</h3>
		
				<ul class="catList">
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl01_Link" class="listitem" href="http://www.codeplex.com/AppArchGuide">patterns &amp; practices Application Architecture Guide</a></li>
			
				</ul>
			
	
		<h3 class="catListTitle">友情博客</h3>
		
				<ul class="catList">
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_Link" class="listitem" href="http://ericgqs.cnblogs.com/" target="_top">eric_gqs</a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_Link" class="listitem" href="http://pw.cnblogs.com/">SHY520</a><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_RssLink" title="Subscribe to SHY520" class="listitem" href="http://pw.cnblogs.com/rss.aspx"><img title="Subscribe to SHY520" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_Link" class="listitem" href="http://www.cnblogs.com/Terrylee">Terrylee</a><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_RssLink" title="Subscribe to Terrylee" class="listitem" href="http://www.cnblogs.com/Terrylee/Rss.aspx"><img title="Subscribe to Terrylee" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				<li class="catListItem"> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_Link" class="listitem" href="http://linfuguo.cnblogs.com/">林子</a><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_RssLink" title="Subscribe to 林子" class="listitem" href="http://linfuguo.cnblogs.com/rss.aspx"><img title="Subscribe to 林子" src="xml_001.gif" style="border-width: 0px;"></a></li>
			
				</ul>
			
	


<h3>积分与排名</h3>
<ul>
	<li>
		积分 -
		247793
	</li><li>
		排名 -
		205
	</li>
</ul>

<h3 class="catListTitle">最新随笔</h3>
<div class="RecentComment" id="RecentPosts">
<ul style="">
	
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl00_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/484216.html">1.&nbsp;用我的MyGeneration模板生成NHibernate映射文件和关系(one-to-one,one-to-many,many-to-many)</a></li>
		
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl00_RecentPostsList2_ctl01_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/483988.html">2.&nbsp;强大的代码生成工具MyGeneration</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl01_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/22/483216.html">3.&nbsp;请帮'Atlas'起个名字</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl02_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/16/478198.html">4.&nbsp;NHibernate的关联映射(one-to-one,one-to-many,many-to-many)以及cascade分析</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl03_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/11/474448.html">5.&nbsp;特里当选英格兰队新任队长</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl04_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/10/473650.html">6.&nbsp;发疯的live.com</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl05_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471820.html">7.&nbsp;NHibernate的Q&amp;A（持续更新）</a></li>
		
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl05_RecentPostsList2_ctl01_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html">8.&nbsp;NHibernate的调试技巧和Log4Net配置</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl06_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/08/470954.html">9.&nbsp;建立OR Mapping团队的倡议</a></li>
		
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl06_RecentPostsList2_ctl01_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/08/470946.html">10.&nbsp;诚邀博客链接</a></li>
		
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl06_RecentPostsList2_ctl02_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/08/470916.html">11.&nbsp;推荐两款在线日程（任务）管理的站点</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl07_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/07/469784.html">12.&nbsp;NHibernate的数据库连接机制分析和如何使用外部连接</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl08_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/04/467688.html">13.&nbsp;NHibernate的Session管理</a></li>
		
		
	
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl09_RecentPostsList2_ctl00_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/03/466636.html">14.&nbsp;有关NHibernate的问题请在此提出</a></li>
		
			<li><a id="SingleColumn1_ctl07_RecentPostsList_ctl09_RecentPostsList2_ctl01_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/03/466627.html">15.&nbsp;[调查]如果你是个讲求编码规范的程序员，而碰到给变量、方法随意命名，注释又混乱的同事时你会怎么处理？？？</a></li>
		
	
</ul>
</div>

<h3 class="catListTitle">最新评论
	<a id="SingleColumn1__2e3d8b6_RSSHyperlink1" href="http://www.cnblogs.com/renrenqq/CommentsRSS.aspx"><img src="xml.gif" style="border-width: 0px;"></a></h3>
<div class="RecentComment" id="RecentComments">
	
			<ul>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl01_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/16/478198.html#1740824">1.&nbsp;Re:NHibernate的关联映射(one-to-one,one-to-many,many-to-many)以及cascade分析</a>
			</li>
			<li style="">
				另外代码不能下载

			</li>
			<li style="text-align: right; margin-right: 4px;">
				--蓝天_白云</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl02_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/16/478198.html#1740823">2.&nbsp;Re:NHibernate的关联映射(one-to-one,one-to-many,many-to-many)以及cascade分析</a>
			</li>
			<li style="">
				非常好的入门资料 学习了

			</li>
			<li style="text-align: right; margin-right: 4px;">
				--蓝天_白云</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl03_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/484216.html#1711802">3.&nbsp;Re:用我的MyGeneration模板生成NHibernate映射文件和关系(one-to-one,one-to-many,many-to-many)</a>
			</li>
			<li style="">
				请问下，我用了楼主你的方法去生成映射文件，为什么在输出路径中找不到那些文件呢
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--起步者</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl04_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/03/466636.html#1703016">4.&nbsp;Re:有关NHibernate的问题请在此提出</a>
			</li>
			<li style="">
				联合主键做外键怎么生成映射文件
表A（A，B，C，D）
表B（B，C，E，F）
A表主键为A，外键为B，C
B表主键为B，C
A表的many-to-one外键怎么写？
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--天河一号</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl05_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/04/467688.html#1702476">5.&nbsp;Re:NHibernate的Session管理</a>
			</li>
			<li style="">
				 m_HttpSessionSourceItemName  
  这个值我发现一直是空的
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--SHOW1</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl06_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/11/24/283757.html#1687151">6.&nbsp;Re:NHibernate翻译文档提供下载（chm和html格式）</a>
			</li>
			<li style="">
				非常感谢博主的奉献
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--追梦客2008</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl07_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/02/465831.html#1677570">7.&nbsp;Re:string和byte[]的相互转换</a>
			</li>
			<li style="">
				过来看看
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--allanBolt</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl08_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/11/24/283757.html#1647546">8.&nbsp;Re:NHibernate翻译文档提供下载（chm和html格式）</a>
			</li>
			<li style=""><span>
				发一份谢谢，邮箱 <a href="mailto:yourihua@qq.com" class="smarterwiki-linkify">yourihua@qq.com</a>
			</span></li>
			<li style="text-align: right; margin-right: 4px;">
				--kuku</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl09_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/483988.html#1633838">9.&nbsp;Re:强大的代码生成工具MyGeneration</a>
			</li>
			<li style="">
				学习一下
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--莫等闲，白了少年头，空悲切。</li>
		
			<li style="">
				<a id="SingleColumn1__2e3d8b6_CommentList_ctl10_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/11/24/283757.html#1611618">10.&nbsp;Re:NHibernate翻译文档提供下载（chm和html格式）</a>
			</li>
			<li style="">
				感谢！！！！！！！！！！
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--hety</li>
		
			</ul>
		
</div>

<h3 class="catListTitle">阅读排行榜</h3>
<div class="RecentComment" id="TopViewPosts"> 
	
			<ul style="">
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/11/24/283757.html">1.&nbsp;NHibernate翻译文档提供下载（chm和html格式）(25906)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/483988.html">2.&nbsp;强大的代码生成工具MyGeneration(16173)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/484216.html">3.&nbsp;用我的MyGeneration模板生成NHibernate映射文件和关系(one-to-one,one-to-many,many-to-many)(10861)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/16/478198.html">4.&nbsp;NHibernate的关联映射(one-to-one,one-to-many,many-to-many)以及cascade分析(10626)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/12/12/295712.html">5.&nbsp;NHibernate快速起步(10612)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2004/08/31/37986.html">6.&nbsp;自动代码生成器(6954)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471788.html">7.&nbsp;NHibernate的调试技巧和Log4Net配置(6419)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/03/466636.html">8.&nbsp;有关NHibernate的问题请在此提出(6296)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/11/22/282195.html">9.&nbsp;NHibernate文档翻译完成(5964)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl09_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2004/06/11/14999.html">10.&nbsp;.NET中统一的存储过程调用方法(收藏)(5941)</a>
			</li>
		
			</ul>
		
</div>

<h3 class="catListTitle">评论排行榜</h3>
<div class="RecentComment" id="TopCommentsPosts">
	
			<ul style="">
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/11/24/283757.html">1.&nbsp;NHibernate翻译文档提供下载（chm和html格式）(129)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/03/466636.html">2.&nbsp;有关NHibernate的问题请在此提出(84)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/07/20/455519.html">3.&nbsp;有追求的程序员是痛苦的吗？(76)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/484216.html">4.&nbsp;用我的MyGeneration模板生成NHibernate映射文件和关系(one-to-one,one-to-many,many-to-many)(52)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/12/12/295712.html">5.&nbsp;NHibernate快速起步(38)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2004/08/31/37986.html">6.&nbsp;自动代码生成器(30)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/09/471820.html">7.&nbsp;NHibernate的Q&amp;A（持续更新）(27)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/23/483988.html">8.&nbsp;强大的代码生成工具MyGeneration(25)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2005/11/22/282195.html">9.&nbsp;NHibernate文档翻译完成(25)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl10_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/renrenqq/archive/2006/08/02/466056.html">10.&nbsp;NHibernate的灵活配置(23)</a>
			</li>
		
			</ul>
		
</div></div>
	
</div>

<!--done-->
<div class="footer">
	Powered by: <a href="http://www.cnblogs.com/">博客园</a>	模板提供：<a href="http://blog.hjenglish.com/">沪江博客</a>
	Copyright ©2010 DDL
</div>



    </form>
	
	
      
    
    
    
</body>
</html>
